#ifndef _IOSPRINTF_H_
#define _IOSPRINTF_H_

#include <util/core.hpp>


#define  STRINGIFY(x) #x 
#define  TOSTRING(x) STRINGIFY(x) 
#define  AT __FILE__ ":" TOSTRING(__LINE__) 
#if (TARGET_OS == OS_WINDOWS)

	#define _STR(x) #x
	#define STR(x) _STR(x)
	#define $TODO(x) __pragma(message(__FILE__ "(" STR(__LINE__) ") :TODO: "_STR(x) " :: " ))
	#define iosprintf(x) do { \
							OutputDebugStringA(x);	\
							OutputDebugStringA("\n"); \
						}while (0);	\

	#define iowsprintf(x) do { \
							OutputDebugStringW(x);	\
							OutputDebugStringW(L"\n"); \
						}while (0);	\


#elif (TARGET_OS == OS_POSIX)
    #define iosprintf(x) printf("%s\n",x);
	#define iowsprintf(x) printf("%s\n",x);
#endif

#endif